<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>xmind</title>
    <link rel="stylesheet" href="style.css" type="text/css" />
</head>
<body>
    <div id="xmind"></div>
    <script src="xmind.js"></script>
    <script src="menu.js"></script>
    <script>
        let newData = [
                {id:"root",root:true,pid:null,label:"xmid"},
                {id:"r1",pid:"root",label:"r1",left:false},
                {id:"r11",pid:"r1",label:"r11",left:false},
                {id:"r12",pid:"r1",label:"r12",left:false},
                {id:"r112",pid:"r11",label:"r112",left:false},
                {id:"r2",pid:"root",label:"r2",left:false},
                {id:"r21",pid:"r2",label:"r21",left:false},
                {id:"r22",pid:"r2",label:"r22",left:false},
                {id:"l1",pid:"root",label:"l1",left:true},
                {id:"l11",pid:"l1",label:"l11",left:true},
                {id:"l12",pid:"l1",label:"l12",left:true},
                {id:"l2",pid:"root",label:"l2",left:true},
            ];
        let xmind = new $xmind({
            selector:"xmind",
            data:[],
        });
        xmind.setNodes(newData);
        // setTimeout(()=>{
        //     xmind.setCenter();
        // },5000);
    </script>
    
</body>
</html>